import { Entity, Column } from 'typeorm'
import { BaseEntity } from '../global'

@Entity('doc')
export class Doc extends BaseEntity {
    @Column({ length: 32, comment: '文档ID' })
    docid: string

    @Column({ length: 32, comment: '企业ID' })
    companyName: string

    @Column({ length: 256, comment: '文档路径' })
    docPath: string

    @Column({ length: 256, comment: '文档标题' })
    docTitle: string

    @Column('longtext', { nullable: true, comment: '文档内容' })
    context: string
}
